package com.project.smms.pojo;

import org.springframework.stereotype.Component;

/**
 * @author 莫息涛
 * @Description: 商品的实体类
 * @date 2020/3/5 15:55
 */
@Component
public class Goods {

    /**
     * 商品id
     */
    private int goods_id;

    /**
     * 商品名
     */
    private String goods_name;

    /**
     * 商品描述
     */
    private String goods_description;

    /**
     * 商品数量
     */
    private int goods_count;

    /**
     * 商品的订单id
     */
    private int goods_orderid;

    public Goods() {
    }

    public Goods(int goods_id, String goods_name, String goods_description, int goods_count, int goods_orderid) {
        this.goods_id = goods_id;
        this.goods_name = goods_name;
        this.goods_description = goods_description;
        this.goods_count = goods_count;
        this.goods_orderid = goods_orderid;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public String getGoods_description() {
        return goods_description;
    }

    public void setGoods_description(String goods_description) {
        this.goods_description = goods_description;
    }

    public int getGoods_count() {
        return goods_count;
    }

    public void setGoods_count(int goods_count) {
        this.goods_count = goods_count;
    }

    public int getGoods_orderid() {
        return goods_orderid;
    }

    public void setGoods_orderid(int goods_orderid) {
        this.goods_orderid = goods_orderid;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "goods_id=" + goods_id +
                ", goods_name='" + goods_name + '\'' +
                ", goods_description='" + goods_description + '\'' +
                ", goods_count=" + goods_count +
                ", goods_orderid=" + goods_orderid +
                '}';
    }
}
